/*******************************************************************************
 * Copyright (c) 2009-2011 ETCORE Labs. All rights reserved. 
 * 
 * This software is the confidential and proprietary information of ETCORE Labs.
 * You shall not disclose such confidential information and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with ETCORE Labs. 
 * 
 * Support can be obtained from support forums at:  http://www.etcore.com/
 * /
 *******************************************************************************/
package etcore.webapp.grouptalk.common.config;

import java.util.Properties;

/**
 * This class defines keys and values for configuration.
 * 
 * @author ETCORE GroupTalk Developers
 * 
 */
public class Layout {
	private static Properties layout;
 
	public static final String LEFT = "left";
	public static final String HEAD_PLATFORM1 ="head_platform1";
	public static final String HEAD_PLATFORM2 ="head_platform2";
	public static final String HEAD_PLATFORM3 ="head_platform3";
	public static final String HEAD_PLATFORM4 ="head_platform4";
	public static final String HEAD_PLATFORM0 ="head_platform0";
	public static final String HEAD_NAV1 ="head_nav1";
	public static final String HEAD_NAV2 ="head_nav2";
	public static final String MAIN_PLATFORM1 ="main_platform1";
	public static final String MAIN_PLATFORM2 ="main_platform2";
	public static final String MAIN_PLATFORM3 ="main_platform3";
	public static final String MAIN_PLATFORM4 ="main_platform4";
	public static final String MAIN_MESSAGES ="main_messages";
	public static final String MAIN_USERS ="main_users";
	public static final String MAIN_NAV1 ="main_nav1";
	public static final String MAIN_NAV2 ="main_nav2";
	
	
 
 
 
 
	static {
		layout = ConfigReader.readLayout();
	 
	}

	public static Properties getLayout() {
		return layout;
	}

	public static String getProperty(String key) {
		if (layout == null)
			layout = ConfigReader.readConfig();
		return (String) layout.get(key);
	}
	 
	public static void setProperty(String key,String value) {
		if (layout == null)
			layout = ConfigReader.readConfig();
		layout.setProperty(key, value);	 
	}
}
